#!/bin/sh

prefix="@PREFIX@"
exec_prefix="@EXEC_PREFIX@"
cflags="-I@ESTATS_INCLUDE_DIR@"
includedir="@ESTATS_INCLUDE_DIR@"
libs="-L@LIBDIR@ -lestats"
libdir="@LIBDIR@"
version="@ESTATS_VERSION@"

usage()
{
  cat <<EOF
Usage: estats-config [OPTIONS]
Options:
        [--prefix]
        [--exec-prefix]
        [--version]
        [--libs]
        [--cflags]
        [--libdir]
        [--includedir]
EOF
  exit $1
}

if test $# -eq 0; then
  usage 1 1>&2
fi

while test $# -gt 0; do
  case $1 in
    --prefix)
      echo ${prefix}
      ;;
    --exec-prefix)
      echo ${exec_prefix}
      ;;
    --version)
      echo ${version}
      ;;
    --cflags)
      echo ${cflags}
      ;;
    --includedir)
      echo ${includedir}
      ;;
    --libs)
      echo ${libs}
      ;;
    --libdir)
      echo ${libdir}
      ;;
    *)
      usage 1 1>&2
      ;;
  esac
  shift
done
